import { createSlice } from "@reduxjs/toolkit";

const shoppingCarSlice = createSlice({
    name: "shoppingCar",
    initialState: {
        list: [],
        
    },
    reducers: {
        changeList: (state:any, action) => {
            state.list.push(action.payload)
        }
    }
})

export const { changeList} = shoppingCarSlice.actions

export default shoppingCarSlice.reducer